/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1588381232589_8208';

  // add your middleware config here
  config.middleware = [ ];

  config.zconnect = { // 此配置为插件的默认配置，可不填
    serverHost: 'http://zeeephr.cn:9100', // 登录服地址
    zeehub: { // 一个登录实例，调用api(ctx.isLogin('zeehub'))等等时需要填入此实例名)。 一个系统中可运行多个登录实例，只需添加多一套入口和回调处理controller即可
      appId: 'bE602o4gEgfo',
      secret: 'pE9kylUdAOrs',
      redirectUri: 'http://127.0.0.1:7001/callback',
      publicKey: '-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDullPgPD4qdkIw7osn7OvuNnCY\nRWt2bz11n/syZYvXE0JTrXZxuu/gP7nqpxHnJGb1cujHzZxZ+SI8LDZSNxT5TB88\nIO8bZtW8t0wKuNNRsgxv990okJqpJY7t0cG3L9FW00FqD/c0rh8Uk4IS8kULkYY0\nirJbagAPEBdfHZsHQQIDAQAB\n-----END PUBLIC KEY-----',
    },
  };
  return {
    ...config,
  };
};
